placesview: fix testsuite
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 11 Apr 2017 19:46:14 +0000 (16:46 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 11 Apr 2017 19:50:33 +0000 (16:50 -0300)
commit400db31ad3466c2839ea6cc6d193db8023225247
tree429a7d60eee2182251131eac5a9e02ce9c9a5538
parent767927aef309761754ce9da8062e20521761b6e0
placesview: fix testsuite

Because the network monitor can perfectly be NULL,
the tests were failing on that for GtkPlacesView
always tries to disconnect this handler.

Fix that by only disconnecting the handler when
the network monitor exists.

https://bugzilla.gnome.org/show_bug.cgi?id=781195
gtk/gtkplacesview.c